|
dcmotor30 2.2.0
|
This file contains API for DC Motor 30 Click Driver. More...
#include "drv_digital_out.h"#include "drv_digital_in.h"#include "drv_i2c_master.h"#include "drv_analog_in.h"Go to the source code of this file.
Data Structures | |
| struct | dcmotor30_t |
| DC Motor 30 Click context object. More... | |
| struct | dcmotor30_cfg_t |
| DC Motor 30 Click configuration object. More... | |
Enumerations | |
| enum | dcmotor30_return_value_t { DCMOTOR30_OK = 0 , DCMOTOR30_ERROR = -1 } |
| DC Motor 30 Click return value data. More... | |
Functions | |
| void | dcmotor30_cfg_setup (dcmotor30_cfg_t *cfg) |
| DC Motor 30 configuration object setup function. | |
| err_t | dcmotor30_init (dcmotor30_t *ctx, dcmotor30_cfg_t *cfg) |
| DC Motor 30 initialization function. | |
| err_t | dcmotor30_default_cfg (dcmotor30_t *ctx) |
| DC Motor 30 default configuration function. | |
| err_t | dcmotor30_write_reg (dcmotor30_t *ctx, uint8_t reg, uint8_t data_in) |
| DC Motor 30 write reg function. | |
| err_t | dcmotor30_read_reg (dcmotor30_t *ctx, uint8_t reg, uint8_t *data_out) |
| DC Motor 30 read reg function. | |
| err_t | dcmotor30_read_adc_raw (dcmotor30_t *ctx, uint16_t *data_out) |
| DC Motor 30 read raw IPROPI ADC value function. | |
| err_t | dcmotor30_read_adc_volt (dcmotor30_t *ctx, float *data_out) |
| DC Motor 30 read IPROPI pin voltage level function. | |
| err_t | dcmotor30_read_adc_volt_avg (dcmotor30_t *ctx, uint16_t num_conv, float *volt_avg) |
| DC Motor 30 read IPROPI pin voltage level average function. | |
| err_t | dcmotor30_set_adc_vref (dcmotor30_t *ctx, float vref) |
| DC Motor 30 set vref function. | |
| void | dcmotor30_set_in1_pin (dcmotor30_t *ctx) |
| DC Motor 30 set IN1 pin function. | |
| void | dcmotor30_clear_in1_pin (dcmotor30_t *ctx) |
| DC Motor 30 clear IN1 pin function. | |
| void | dcmotor30_set_in2_pin (dcmotor30_t *ctx) |
| DC Motor 30 set IN2 pin function. | |
| void | dcmotor30_clear_in2_pin (dcmotor30_t *ctx) |
| DC Motor 30 clear IN2 pin function. | |
| uint8_t | dcmotor30_get_fault_pin (dcmotor30_t *ctx) |
| DC Motor 30 get FAULT pin function. | |
| void | dcmotor30_drive_motor (dcmotor30_t *ctx, uint8_t state) |
| DC Motor 30 drive motor function. | |
| err_t | dcmotor30_clear_fault (dcmotor30_t *ctx) |
| DC Motor 30 clear fault function. | |
| err_t | dcmotor30_calib_offset (dcmotor30_t *ctx) |
| DC Motor 30 calib offset function. | |
| err_t | dcmotor30_get_out_current (dcmotor30_t *ctx, float *current) |
| DC Motor 30 get out current function. | |
This file contains API for DC Motor 30 Click Driver.